package DAO;

import java.sql.Connection;
import java.sql.DriverManager;

public class FabricaConexao {

	public Connection getConnection() {
		try {
			DriverManager
					.registerDriver(new com.microsoft.sqlserver.jdbc.SQLServerDriver());
			return DriverManager
					.getConnection("jdbc:sqlserver://localhost:1433;"
							+ "databaseName=TESTE; user=sa; password=m4ckintox");
		} catch (Exception e) {
			throw new RuntimeException(e);
		}

	}

}
